package website.haicheng.cloudauth.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import website.haicheng.core.base.BaseEntity;

import java.time.LocalDateTime;
import java.util.Set;

/**
 * @description:
 * @author: 582895699@qq.com
 * @time: 2021/2/19 下午 06:24
 */
@Getter
@Setter
@ApiModel(description = "添加用户实体类")
public class UserInfoDto extends BaseEntity {
    private static final long serialVersionUID = 1459420955457538436L;

    @ApiModelProperty(value = "编号",name = "修改时需要")
    private Long id;

    @ApiModelProperty(value = "姓名")
    private String userName;

    @ApiModelProperty(value = "账号")
    private String account;

    @ApiModelProperty(value = "1:表示删除；0:表示未删除")
    private Boolean isDelete;

    @ApiModelProperty(value = "是否启用；1：表示冻结；0：表示启用")
    private Boolean enable;

    @ApiModelProperty(value = "头像url")
    private String avatar;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @ApiModelProperty(value = "修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "邮箱")
    private String eMail;

    @ApiModelProperty(value = "角色")
    private Set<String> roles;

    @ApiModelProperty(value = "权限")
    private Set<String> permissions;
}
